﻿using Microsoft.AspNetCore.Mvc;
using Xwy.Practical.AOPS;

namespace Xwy.Practical.Controllers
{
    public class Test2Controller : Controller
    {
        
        public Test2Controller()
        {          
        }
        public string Index()
        {
            //AOPS.AOPTest.Show();
            Common2Class a = new Common2Class();
            a=(Common2Class)a.AOP(typeof(Common2Class));
            a.MethodInterceptor();
            string str = HttpContext.Request.Path;
            return "hello world"+str;
        }
    }
}